package com.cuitrip.business.home.favorite;

import com.cuitrip.component.Label;
import com.lab.adapter.IAdapterData;

import java.util.List;

/**
 * Created by baziii on 15/8/10.
 */
public class TravelTrip implements IAdapterData{
    public static final String KEY_TRAVEL_TRIP_ID = "trip_id";

    //service id
    protected String sid;
    //favorite name
    protected String serviceName;
    protected String headPic;
    protected String serviceAddress;

    protected String userNick;
    protected String servicePicUrl;
    protected String isShow;// 1 可进到详情 0 不可进
    protected String showPrice;
    protected String priceType;
    protected String showCurrency;
    protected String career;
    private int serviceTime;
    private List<Label> labelList;

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }

    public String getServiceAddress() {
        return serviceAddress;
    }

    public void setServiceAddress(String serviceAddress) {
        this.serviceAddress = serviceAddress;
    }

    public String getUserNick() {
        return userNick;
    }

    public void setUserNick(String userNick) {
        this.userNick = userNick;
    }

    public String getServicePicUrl() {
        return servicePicUrl;
    }

    public void setServicePicUrl(String servicePicUrl) {
        this.servicePicUrl = servicePicUrl;
    }

    public String getIsShow() {
        return isShow;
    }

    public void setIsShow(String isShow) {
        this.isShow = isShow;
    }

    public String getShowPrice() {
        return showPrice;
    }

    public void setShowPrice(String showPrice) {
        this.showPrice = showPrice;
    }

    public String getPriceType() {
        return priceType;
    }

    public void setPriceType(String priceType) {
        this.priceType = priceType;
    }

    public String getShowCurrency() {
        return showCurrency;
    }

    public void setShowCurrency(String showCurrency) {
        this.showCurrency = showCurrency;
    }

    public String getCareer() {
        return career;
    }

    public void setCareer(String career) {
        this.career = career;
    }

    public boolean isAvailable() {
        return "1".equals(isShow);
    }

    public int getServiceTime() {
        return serviceTime;
    }

    public void setServiceTime(int serviceTime) {
        this.serviceTime = serviceTime;
    }

    public TravelTrip() {
    }

    public List<Label> getLabelList() {
        return labelList;
    }

    public void setLabelList(List<Label> labelList) {
        this.labelList = labelList;
    }

    public TravelTrip(String sid, String serviceName, String headPic, String serviceAddress, String userNick, String servicePicUrl, String isShow, String showPrice, String priceType, String showCurrency, String career) {
        this.sid = sid;
        this.serviceName = serviceName;
        this.headPic = headPic;
        this.serviceAddress = serviceAddress;
        this.userNick = userNick;
        this.servicePicUrl = servicePicUrl;
        this.isShow = isShow;
        this.showPrice = showPrice;
        this.priceType = priceType;
        this.showCurrency = showCurrency;
        this.career = career;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TravelTrip that = (TravelTrip) o;

        return !(sid != null ? !sid.equals(that.sid) : that.sid != null);

    }

    @Override
    public int hashCode() {
        return sid != null ? sid.hashCode() : 0;
    }
}
